package com.zeroup.auto.utils;

import android.graphics.Rect;
import android.util.Log;
import android.view.accessibility.AccessibilityNodeInfo;

import com.ven.assists.Assists;
import com.zeroup.auto.assists.kt.MyContinuation;

import java.util.Random;

public class RandomUtile {

    public static int rangInt(int min,int max){
        if(min>=max){
            throw new IllegalArgumentException(" max must be greater than min");
        }
        Random random = new Random();
        return random.nextInt((max-min)+1) +min;
    }

    public static long rangLong(long min,long max){
        if(min>=max){
            throw new IllegalArgumentException(" max must be greater than min");
        }
        Random random = new Random();
        return min + random.nextLong() % (max - min + 1);
    }
}
